﻿using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using TTGameEngine;
using System;

/*
 * AttackFrameTiggerEditor
 *
 *
 *
 * 依赖：
 *
 * ！不写重复代码！
 * @author TTun
 * @date 7/27/2017 10:52:18 AM
 */
[CustomEditor(typeof(AttackFrameTrigger))]
[CanEditMultipleObjects]
public class AttackFrameTriggerEditor : Editor {
    private SerializedObject scriptObj;
    private AttackFrameTrigger obj;

    void OnEnable() {
        scriptObj = new SerializedObject(target);
        obj = target as AttackFrameTrigger;


    }

    public override void OnInspectorGUI() {

        scriptObj.Update();

        base.OnInspectorGUI();

        string[] enumNames = Enum.GetNames(typeof(TargetSelectType));

        //obj.m_targetType = EditorGUILayout.MaskField("TargetType", (int)obj.m_targetType, enumNames);

        scriptObj.ApplyModifiedProperties();
    }
}